package cn.lifei.auth.service.impl;

import cn.lifei.auth.domain.Menu;
import cn.lifei.auth.domain.RoleMenu;
import cn.lifei.auth.mapper.MenuMapper;
import cn.lifei.auth.service.IRoleMenuService;
import cn.lifei.basic.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lifei
 * @since 2023-12-03
 */
@Service
public class RoleMenuServiceImpl extends BaseServiceImpl<RoleMenu> implements IRoleMenuService {

    @Autowired
    private MenuMapper menuMapper;

    @Override
    public List<Menu> queryMenuTree(Long id) {
        return menuMapper.queryTree(id);
    }
}
